package com.nineclock.system.controller;

import com.nineclock.common.entity.Result;
import com.nineclock.system.service.SysCompanyUserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/organization/members/simple")
public class OrganizationController {
    @Autowired
    private SysCompanyUserService sysCompanyUserService;

    /**
     * 查询组织所有有效员工
     * @return
     */
    @GetMapping
    public Result queryMembers(){
        return Result.success(sysCompanyUserService.queryMembers());
    }

}
